//---------------------------------------------------------------------------
// Name:	elog.h
// Desc:	Logger define for SymbianOS
// Author:	D.C
// Date:	18:04 2006-10-17
//---------------------------------------------------------------------------

#if !defined(ELOG_H__)
#define ELOG_H__
//
#ifndef SAFE_DELETE
#define SAFE_DELETE( x ) \
{ \
    if (( x ) != NULL ) \
    { \
    delete ( x ); \
    ( x ) = NULL; \
    } \
}
#endif
//
#define _LOG
#define _TIMESTAMP


//
// normal debugging
//
#ifdef _LOG

#pragma message("================================ ELOG is enable. ================================")

#include <f32file.h>

class CEpocLogger : public CBase
{
public:
    static void Clear();
    static void DoLog(TRefByValue<const TDesC8> aFmt, ...);
    static void DoLog(TRefByValue<const TDesC16> aFmt, ...);
    static void DoLog(const TDesC8& aText);
    static void DoLog(const TDesC16& aText);
private:
};

#define LOOG CEpocLogger::DoLog



#else //_LOG  no debugging

#pragma message("================================ ELOG do not use. ================================")
#define LOOG

#endif //_LOG

#endif  // ELOG_H__

